package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.RespBean;
import com.xxxx.server.pojo.Userauthority;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LT
 * @since 2022-02-27
 */
public interface UserauthorityMapper extends BaseMapper<Userauthority> {
    /**
     * 更新用户权限
     * @param userId
     * @param authorityIds
     * @return
     */
    Integer addAdminAuthority(@Param("userId") Integer userId, @Param("authorityIds") List<Integer> authorityIds);
}
